<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>HTML Character Codes</title>
<link rel="stylesheet" type="text/css" href="../css/site.css">
<script type="text/javascript" src="../keyboard/vk_loader.js?layout=KR_2%20Beolsik"></script>
<script type="text/javascript">
function translate() {
	var output = document.getElementById("output");
	var input = document.getElementById("input");
	output.value = "";
	for (var i = 0; i < input.value.length; i++) {
		if ( input.value.charCodeAt(i) <= 255 ) {
			output.value += input.value.substring( i,(i+1) );
		} else {
			output.value += "&#" + input.value.charCodeAt(i) + ";";
		}
	}
	output.select();
}
</script>
</head>
<body onload="VirtualKeyboard.toggle('input','kb');VirtualKeyboard.switchLayout('KR','2 Beolsik');">
<p style="font-family: verdana;font-size:77%">Type in the input textbox.
Click in the output textbox to generate HTML character codes.</p>
<p style="font-family: verdana;font-size:77%;font-weight:bold">Keyboard (input)</p>
<textarea id="input" name="input" rows="4" cols="50" onfocus="VirtualKeyboard.attachInput(this)">
</textarea>
<div id="kb"></div>
<p style="font-family: verdana;font-size:77%;font-weight:bold">HTML Character Codes (output)</p>
<textarea id="output" name="input" rows="4" cols="50" onfocus="translate()">
</textarea>
</body>
</html>